package net.cyue.nest.nestjava.platform.tomcat;

import net.cyue.nest.nestjava.core.NestApplication;
import net.cyue.nest.nestjava.core.NestApplicationOption;
import net.cyue.nest.nestjava.core.NestFactory;

public class TomcatNestFactory {
  public static
  NestApplication<TomcatAdapter>
  create(Class<?> appModuleClass) {
    return TomcatNestFactory.create(appModuleClass, new NestApplicationOption());
  }
  public static
  NestApplication<TomcatAdapter>
  create(Class<?> appModuleClass, NestApplicationOption option) {
    return NestFactory.create(appModuleClass, new TomcatAdapter(), option);
  }
}
